def letters(str):
    newStr = ''
    for i in str:
        if i.isdecimal():
            continue
        else:
            newStr = newStr + i
    return newStr



def reverse(str):
    return str[::-1]


if __name__ == '__main__':
    str = "abcd8ef4g55hi2zero"
    str = letters(str)
    str = reverse(str)
    print(str)